Create a tar archive from a directory
Since I started working with cPanel server I always needed to create archives from directories.
For example backing up a user’s home directory.
How can you do this? It’s not difficult at all. For exemple to backup a user home directory you would have to run:
tar -pczf rchive.tar.gz /home/USERNAME
You can read more about tar by reading it’s manual.
man tar
Happy reading !
If you have any questions don’t hesitate to leave a comment.
If you enjoyed this post, make sure you subscribe to my RSS feed!
- November 30th













goood am good